package com.campsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String username;
    
    private String password;
    
    // 用户角色：0-超级管理员，1-管理员，2-教师，3-学生
    private Integer roleType;
    
    private String realName;
    
    private String phone;
    
    private String email;
    
    // 0-禁用，1-启用
    private Integer status;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 